<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>查询学生信息</title>
</head>
<body>
<h3 align="center">用户信息</h3>
<table align="center" border="1px" width="300px">
    <tr align="center">
        <td>id</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>分数</td>
    </tr>
    <c:forEach items="${names}" var="u">
        <tr align="center">
            <td>${u.id}</td>
            <td>${u.name}</td>
            <td>${u.age}</td>
            <td>${u.score}</td>
        </tr>
    </c:forEach>
</table>
<button style="display:block;margin:0 auto"><a href="index.jsp">跳转到首页</a></button>
</body>
</html>
